-
Notifications
You must be signed in to change notification settings - Fork 1k
Version Packages #7766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Packages #7766
Conversation
|
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-wrangler-7766You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7766/npm-package-wrangler-7766Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-wrangler-7766 dev path/to/script.jsAdditional artifacts:cloudflare-workers-bindings-extension: wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-bindings-extension-7766 -O ./cloudflare-workers-bindings-extension.0.0.0-v8ee7af2e2.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-v8ee7af2e2.vsixcreate-cloudflare: npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-create-cloudflare-7766 --no-auto-update@cloudflare/kv-asset-handler: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-kv-asset-handler-7766miniflare: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-miniflare-7766@cloudflare/pages-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-pages-shared-7766@cloudflare/unenv-preset: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-unenv-preset-7766@cloudflare/vitest-pool-workers: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-vitest-pool-workers-7766@cloudflare/workers-editor-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-editor-shared-7766@cloudflare/workers-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workers-shared-7766@cloudflare/workflows-shared: npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12806127861/npm-package-cloudflare-workflows-shared-7766Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
0bb9dbb to
a84fe6e
Compare
|
this has tentative approval pending passing checks and additional review after #7774 lands |
a84fe6e to
03c9de1
Compare
This reverts commit cc4af98.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@cloudflare/[email protected]
Minor Changes
bb85c9aThanks @WillTaylorDev! - Adds jaeger tracing for asset-worker.Patch Changes
97603f0Thanks @WalshyDev! - fix: on a 404 from KV, we do not want the asset to stay in cache for the normal 1 year TTL. Instead we want to re-insert with a 60s TTL to revalidate and prevent a bad 404 from persisting.[email protected]
Minor Changes
#5086
8faf2c0Thanks @dario-piotrowicz! - add--strict-varsoption towrangler typesadd a new
--strict-varsoption towrangler typesthat developers can (by setting theflag to
false) use to disable the default strict/literal types generation for their variablesopting out of strict variables can be useful when developers change often their
varsvalues,even more so when multiple environments are involved
Example
With a toml containing:
the
wrangler typescommand would generate the following interface:while
wrangler types --strict-vars=falsewould instead generate:(allowing the developer to easily change their toml variables without the
risk of breaking typescript types)
Patch Changes
#7720
902e3afThanks @vicb! - chore(wrangler): use the unenv preset from@cloudflare/unenv-preset#7760
19228e5Thanks @vicb! - chore: update unenv dependency version#7735
e8aaa39Thanks @penalosa! - Unwrap the error cause when available to send to Sentry#5086
8faf2c0Thanks @dario-piotrowicz! - fix: widen multi-envvarstypes inwrangler typesCurrently, the type generated for
varsis a string literal consisting of the value of the variable in the top level environment. If multiple environmentsare specified this wrongly restricts the type, since the variable could contain any of the values from each of the environments.
For example, given a
wrangler.tomlcontaining the following:running
wrangler typeswould generate:making typescript incorrectly assume that
MY_VARis always going to be"dev value"after these changes, the generated interface would instead be:
#7733
dceb196Thanks @emily-shen! - feat: pull resource names for provisioning from config if providedUses
database_nameandbucket_namefor provisioning if specified. For R2, this only happens if there is not a bucket with that name already. Also respects R2jurisdictionif provided.Updated dependencies []:
[email protected]
Patch Changes
#7774
f9344a0Thanks @CarmenPopoviciu! - Fix regression in C3'snexttemplate#7676 switched C3 templates to default to
wrangler.jsoninstead ofwrangler.toml. Unfortunately, this unintendedly broke thenexttemplate, which was still attempting to readwrangler.tomlspecifically. This commit fixes the regression.Fixes 🐛 BUG: [email protected], Output the wrangler.json config format when running create-cloudflare. But when generating the next template, the wrangler.toml file will be read. #7770
@cloudflare/[email protected]
Patch Changes
902e3af,19228e5,e8aaa39,8faf2c0,dceb196,8faf2c0]:[email protected]
Patch Changes
99f27dfThanks @edmundhung! - fix: sends raw request method through the X-CF-HTTP-Method header